/**
 * 
 */
package fr.ema.arch3d.editor.mainGUI;

import javax.swing.JButton;
import javax.swing.JFrame;
import javax.swing.JLabel;
import javax.swing.JScrollPane;
import javax.swing.JSeparator;
import javax.swing.JTextArea;
import javax.swing.JTextField;
import javax.swing.SwingUtilities;
import javax.swing.UIManager;

import org.dyno.visual.swing.layouts.Bilateral;
import org.dyno.visual.swing.layouts.Constraints;
import org.dyno.visual.swing.layouts.GroupLayout;
import org.dyno.visual.swing.layouts.Leading;

//VS4E -- DO NOT REMOVE THIS LINE!
public class ChangeRequest extends JFrame {

    private static final long serialVersionUID = 1L;
    private JScrollPane jScrollPane0;
    private JLabel jLabel0;
    private JTextField jTextField0;
    private JButton jButton0;
    private JLabel jLabel1;
    private JSeparator jSeparator0;
    private JLabel jLabel2;
    private JTextArea jTextArea0;
    private JScrollPane jScrollPane1;
    private JSeparator jSeparator1;
    private JButton jButton1;
    private JSeparator jSeparator2;
    private JButton jButton3;
    private JButton jButton2;
    private static final String PREFERRED_LOOK_AND_FEEL = "javax.swing.plaf.metal.MetalLookAndFeel";
    public ChangeRequest() {
	initComponents();
    }

    private void initComponents() {
    	setTitle("New Change Request");
    	setLayout(new GroupLayout());
    	add(getJLabel0(), new Constraints(new Leading(5, 99, 10, 10), new Leading(36, 10, 10)));
    	add(getJTextField0(), new Constraints(new Leading(104, 338, 10, 10), new Leading(36, 12, 12)));
    	add(getJButton0(), new Constraints(new Leading(450, 10, 10), new Leading(31, 12, 12)));
    	add(getJSeparator0(), new Constraints(new Bilateral(0, 0, 556), new Leading(63, 10, 12, 12)));
    	add(getJLabel2(), new Constraints(new Leading(5, 12, 12), new Leading(74, 12, 12)));
    	add(getJScrollPane1(), new Constraints(new Leading(106, 425, 10, 10), new Leading(103, 236, 10, 10)));
    	add(getJSeparator1(), new Constraints(new Leading(5, 548, 12, 12), new Leading(365, -8, 10, 10)));
    	add(getJSeparator2(), new Constraints(new Leading(5, 548, 12, 12), new Leading(399, 10, 12, 12)));
    	add(getJButton3(), new Constraints(new Leading(447, 81, 10, 10), new Leading(357, 12, 12)));
    	add(getJButton2(), new Constraints(new Leading(411, 12, 12), new Leading(420, 12, 12)));
    	add(getJLabel1(), new Constraints(new Leading(5, 554, 12, 12), new Leading(0, 26, 12, 12)));
    	add(getJButton1(), new Constraints(new Leading(106, 12, 12), new Leading(419, 28, 12, 12)));
    	setSize(556, 462);
    }

    private JButton getJButton2() {
    	if (jButton2 == null) {
    		jButton2 = new JButton();
    		jButton2.setText("Begin evolution");
    	}
    	return jButton2;
    }

    private JButton getJButton3() {
    	if (jButton3 == null) {
    		jButton3 = new JButton();
    		jButton3.setText("Finish");
    	}
    	return jButton3;
    }

    private JSeparator getJSeparator2() {
    	if (jSeparator2 == null) {
    		jSeparator2 = new JSeparator();
    	}
    	return jSeparator2;
    }

    private JButton getJButton1() {
    	if (jButton1 == null) {
    		jButton1 = new JButton();
    		jButton1.setText("Modify the change request");
    	}
    	return jButton1;
    }

    private JSeparator getJSeparator1() {
    	if (jSeparator1 == null) {
    		jSeparator1 = new JSeparator();
    	}
    	return jSeparator1;
    }

    private JScrollPane getJScrollPane1() {
    	if (jScrollPane1 == null) {
    		jScrollPane1 = new JScrollPane();
    		jScrollPane1.setViewportView(getJTextArea0());
    	}
    	return jScrollPane1;
    }

    private JTextArea getJTextArea0() {
    	if (jTextArea0 == null) {
    		jTextArea0 = new JTextArea();
    	}
    	return jTextArea0;
    }

    private JLabel getJLabel2() {
    	if (jLabel2 == null) {
    		jLabel2 = new JLabel();
    		jLabel2.setText("New change request:");
    	}
    	return jLabel2;
    }

    private JSeparator getJSeparator0() {
    	if (jSeparator0 == null) {
    		jSeparator0 = new JSeparator();
    	}
    	return jSeparator0;
    }

    private JLabel getJLabel1() {
    	if (jLabel1 == null) {
    		jLabel1 = new JLabel();
    		jLabel1.setText("Create new change request");
    	}
    	return jLabel1;
    }

    private JButton getJButton0() {
    	if (jButton0 == null) {
    		jButton0 = new JButton();
    		jButton0.setText("Browse");
    	}
    	return jButton0;
    }

    private JTextField getJTextField0() {
    	if (jTextField0 == null) {
    		jTextField0 = new JTextField();
    	}
    	return jTextField0;
    }

    private JLabel getJLabel0() {
    	if (jLabel0 == null) {
    		jLabel0 = new JLabel();
    		jLabel0.setText("XML source file:");
    	}
    	return jLabel0;
    }

    private JScrollPane getJScrollPane0() {
    	if (jScrollPane0 == null) {
    		jScrollPane0 = new JScrollPane();
    		jScrollPane0.setViewportView(getJLabel1());
    	}
    	return jScrollPane0;
    }

    private static void installLnF() {
	try {
	    String lnfClassname = PREFERRED_LOOK_AND_FEEL;
	    if (lnfClassname == null)
		lnfClassname = UIManager.getCrossPlatformLookAndFeelClassName();
	    UIManager.setLookAndFeel(lnfClassname);
	} catch (Exception e) {
	    System.err.println("Cannot install " + PREFERRED_LOOK_AND_FEEL
		    + " on this platform:" + e.getMessage());
	}
    }

    /**
     * Main entry of the class.
     * Note: This class is only created so that you can easily preview the result at runtime.
     * It is not expected to be managed by the designer.
     * You can modify it as you like.
     */
    public static void main(String[] args) {
	installLnF();
	SwingUtilities.invokeLater(new Runnable() {
	    @Override
	    public void run() {
		ChangeRequest frame = new ChangeRequest();
		frame.setDefaultCloseOperation(ChangeRequest.EXIT_ON_CLOSE);
		frame.setTitle("ChangeRequest");
		frame.getContentPane().setPreferredSize(frame.getSize());
		frame.pack();
		frame.setLocationRelativeTo(null);
		frame.setVisible(true);
	    }
	});
    }

}
